Optimal. Leaf size=245 \[ \frac {(d+e x)^{m+1} \, _2F_1\left (1,m+1;m+2;-\frac {g (d+e x)}{e f-d g}\right ) \left (c \left (2 d^2 g^2-4 d e f g (m+1)+e^2 f^2 \left (m^2+3 m+2\right )\right )-e g m (a e g (1-m)-b (2 d g-e f (m+1)))\right )}{2 g^2 (m+1) (e f-d g)^3}+\frac {(d+e x)^{m+1} (g (a e g (1-m)-b (2 d g-e f (m+1)))+c f (4 d g-e f (m+3)))}{2 g^2 (f+g x) (e f-d g)^2}+\frac {(d+e x)^{m+1} \left (a+\frac {f (c f-b g)}{g^2}\right )}{2 (f+g x)^2 (e f-d g)} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.32, antiderivative size = 243, normalized size of antiderivative = 0.99, number of steps used = 3, number of rules used = 3, integrand size = 25, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.120, Rules used = {949, 78, 68} \[ \frac {(d+e x)^{m+1} \, _2F_1\left (1,m+1;m+2;-\frac {g (d+e x)}{e f-d g}\right ) \left (e g m (-a e g (1-m)+2 b d g-b e f (m+1))+c \left (2 d^2 g^2-4 d e f g (m+1)+e^2 f^2 \left (m^2+3 m+2\right )\right )\right )}{2 g^2 (m+1) (e f-d g)^3}-\frac {(d+e x)^{m+1} (g (-a e g (1-m)+2 b d g-b e f (m+1))-c f (4 d g-e f (m+3)))}{2 g^2 (f+g x) (e f-d g)^2}+\frac {(d+e x)^{m+1} \left (a+\frac {f (c f-b g)}{g^2}\right )}{2 (f+g x)^2 (e f-d g)} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 68
Rule 78
Rule 949
Rubi steps
\begin {align*} \int \frac {(d+e x)^m \left (a+b x+c x^2\right )}{(f+g x)^3} \, dx &=\frac {\left (a+\frac {f (c f-b g)}{g^2}\right ) (d+e x)^{1+m}}{2 (e f-d g) (f+g x)^2}+\frac {\int \frac {(d+e x)^m \left (\frac {c f (2 d g-e f (1+m))-g (2 b d g-a e g (1-m)-b e f (1+m))}{g^2}-2 c \left (d-\frac {e f}{g}\right ) x\right )}{(f+g x)^2} \, dx}{2 (e f-d g)}\\ &=\frac {\left (a+\frac {f (c f-b g)}{g^2}\right ) (d+e x)^{1+m}}{2 (e f-d g) (f+g x)^2}-\frac {(g (2 b d g-a e g (1-m)-b e f (1+m))-c f (4 d g-e f (3+m))) (d+e x)^{1+m}}{2 g^2 (e f-d g)^2 (f+g x)}+\frac {\left (e g m (2 b d g-a e g (1-m)-b e f (1+m))+c \left (2 d^2 g^2-4 d e f g (1+m)+e^2 f^2 \left (2+3 m+m^2\right )\right )\right ) \int \frac {(d+e x)^m}{f+g x} \, dx}{2 g^2 (e f-d g)^2}\\ &=\frac {\left (a+\frac {f (c f-b g)}{g^2}\right ) (d+e x)^{1+m}}{2 (e f-d g) (f+g x)^2}-\frac {(g (2 b d g-a e g (1-m)-b e f (1+m))-c f (4 d g-e f (3+m))) (d+e x)^{1+m}}{2 g^2 (e f-d g)^2 (f+g x)}+\frac {\left (e g m (2 b d g-a e g (1-m)-b e f (1+m))+c \left (2 d^2 g^2-4 d e f g (1+m)+e^2 f^2 \left (2+3 m+m^2\right )\right )\right ) (d+e x)^{1+m} \, _2F_1\left (1,1+m;2+m;-\frac {g (d+e x)}{e f-d g}\right )}{2 g^2 (e f-d g)^3 (1+m)}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.16, size = 157, normalized size = 0.64 \[ -\frac {(d+e x)^{m+1} \left (e \left (e \left (g (a g-b f)+c f^2\right ) \, _2F_1\left (3,m+1;m+2;\frac {g (d+e x)}{d g-e f}\right )-(2 c f-b g) (e f-d g) \, _2F_1\left (2,m+1;m+2;\frac {g (d+e x)}{d g-e f}\right )\right )+c (e f-d g)^2 \, _2F_1\left (1,m+1;m+2;\frac {g (d+e x)}{d g-e f}\right )\right )}{g^2 (m+1) (d g-e f)^3} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [F] time = 1.43, size = 0, normalized size = 0.00 \[ {\rm integral}\left (\frac {{\left (c x^{2} + b x + a\right )} {\left (e x + d\right )}^{m}}{g^{3} x^{3} + 3 \, f g^{2} x^{2} + 3 \, f^{2} g x + f^{3}}, x\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {{\left (c x^{2} + b x + a\right )} {\left (e x + d\right )}^{m}}{{\left (g x + f\right )}^{3}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [F] time = 0.10, size = 0, normalized size = 0.00 \[ \int \frac {\left (c \,x^{2}+b x +a \right ) \left (e x +d \right )^{m}}{\left (g x +f \right )^{3}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {{\left (c x^{2} + b x + a\right )} {\left (e x + d\right )}^{m}}{{\left (g x + f\right )}^{3}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.00 \[ \int \frac {{\left (d+e\,x\right )}^m\,\left (c\,x^2+b\,x+a\right )}{{\left (f+g\,x\right )}^3} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\left (d + e x\right )^{m} \left (a + b x + c x^{2}\right )}{\left (f + g x\right )^{3}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________